testdb.c for testing sqlite3