refactor db to be an object and expose it on the plugin
test that the db objects are available via the .get method