Updated schema def to correct for mongoose crash
Updated deprecated momentjs function calls