Modify deleteById and searchById to search by ObjectID
The functions deleteById and searchById currently pass the '_id' field as a string. Thus, they do not work with standard mongodb documents in which the '_id' field holds an ObjectID. The former function will throw errors and the latter will call back with an empty response. This MR fixes them so that they work as intended.