register a logging func with sqlite, to get extra info on errors sqlite3 (latest patch) from DRH included this functionality. use it to get more useful debugging info from sqlite