Add tests that test the database interaction. Added chai module and fixed the mocha options.