Replace database queries in repositories with Morphia
Update ParentBuildAction to accept build by parameter