added test for db connection