added mocha testing that for db connection