Modifying syntax for Postgres compatability