changed from postgresql back to sqlite3