register a logging func with sqlite, to get extra info on errors

sqlite3 (latest patch) from DRH included this functionality.
us it to get more useful debugging info from sqlite
1 file changed