Added support for duplicate removal and strict option for mongoose schema