allow custom command for checking pgsql