better reporting SQLite errors