Bugfixes in SQLite3 wrapper class.