Updated the mongoose schema registry to update schemas properly