Added update method that does a find by query before updating docs