When updating an appstore app, execute a database update

See #5202 

@Raydiation @DeepDiver1975 @karlitschek