change for pg db syntax