Send errors from mongo to the query callbacks for displaying to user

When something went wrong the user did not get informed because the return value from some mongo queries were not inspected.