Completed SQLite database classes