Finished implementing the sqlitedatabase class