Started adding sqlite convenience methods and setting up the database