Added missing postgres functions