[server] Add PostgreSQL support.