Fixing on error event and also merging req.params into query
update query part of readme