Use SQLite properly for testing