fixed syntax for postgre