escap single quote for postgres