Fix populate task to not use static ids

Category ids are not guaranteed to start from 1.
Merge pull request #1 from carlosdp/fix-populate

Fix populate task to not use static ids