adding test suite, and making sure that clear db works (that took forever because of some interesting timing issues with deleting the database and disconnecting).