testing for db connections