extract error handling method of mongo db
leave boolean flag of execution result in response
extend getter and setter of Response object