Check if database entry still exists when correcting the read flags

Constrain database size when autosyncing
Change parameters for constrainDatabaseSize()
Clear obsolete notifications on app startup