Improve importation of packages to database