develop
handleQueryResponse
function handleQueryResponse(err, data, res, searchById, notFoundError) {