Completed MockDB functionality, all tests passing