Fix Bad Formed Request PGSQL