Add pg database support