Fixed problem where main was not registering defaultdb. All tests passing