Added database test to attempt connection.