Optimize the register() method.

We now fetch the incumbent registrations for all the incoming
packages at once, instead of doing them one at a time.
Better variable names.
Mention query optimizations in change log.