programatically retrieve the db object from the root module