todo: migrate database from sqlite3 to posgres