Finally got the SQLite database working.