added code for skipping tests if db doesnt exist