improved background data retrieval with alarm manager