#380 Finish PostgreSQL support