recurring events added, updates existing events and stores ids. Also refactors the app install function to get device id and store account preferences on load