datauploaderhistory sql snippets