Fix loading packages from DB