When updating an appstore app, execute a database update

See #5202