updated mongoose schema