- Fix database for new install
- Start foreground service after application upgrade
- Improve registration update
