Fixed syntax error in psql model