Added some code for the SQLite database.