fixed bug in mongoStore middleware

Fixed a bug in the mongoStore middleware preventing update and delete from working correctly