REST API PUT with db id bug

Fixed issue while updating a record with the mongo db id