FIX: typo in sql escaping for pgsql