Replace database queries in repositories with Morphia

FYI, please see internal thread about using `PowerMockito`