Change tagDatabase sql generator to use ORDEREXECUTED column instead of
DATEEXECUTED and to tag changesets from the last tag.