PostgreSQL 2.x updates

Updates to support LoopBack 2.x.