replace asynctask with service
implemented encryption for record transfer