Change sqlite3 for postgresl