PostgreSQL: add utility methods

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