PostgreSQL: add connection structure

Signed-off-by: swpd <swpdtz@gmail.com>