Checking if connection to DB is available