[ADD] Migration scripts for the project addon

res is the result of a search call and will iterate over it, thus it's an integer not a browser record, thus causing AttributeError