updates to sqlite3 database interaction