database-manager: invalidate database payload on file changes

Install a GFileMonitor to invalidate the database payload when an
application is updated or removed.
Fix whitespace

[endlessm/eos-sdk#2505]