moving entity data retrieval work  to an asynctask