Is there a way to check if database exists and is available for connection (perhaps similar to 'ping') without trying to connect and wait for a timeout?