Added a FitNesse test and fixed a database resetting bug.