Improve performence of app_info.db creation/insertion of a package in app_info.db