added optimization for local database update
Merge branch 'update_install_optimization'