fixed database after sqlite3 to postgres conversion