Now runs on postgresql instead of sqlite3