Change mongoose requirement to be more flexible