changed back to sqlite3 database from postgres