Doctor office postgresql