optimize android database cursor data transfer object function