Added basic update database functionality.
Added missing headers.
Implemented database update after updating app.