changes to mock out the database service to make tests pass on travis
update scope of mock to test method rather than setup