[Branch ~dhis2-devs-core/dhis2/trunk] Rev 164: Improved the trimming of the temporary table used in datamart