Add z_db_pgsql:test_connection/1 function and worker behaviour