Added pg adapter and modified the table creators to support it