added query amount to getDataForUUID