Remove postgresql syntax, not as good as sql