fixed wrong syntax generation for PostgreSQL, resolves #93