Test SQLite database