Fixed loading extension packages from the database

Looks like this method was copied from the old one, but packages loaded from the database have keys with underscores in property names.