Fixed loading extension packages from the database