rewriting ids for mongoose has been moved to mongooge utils file