libraries/db: give updatePull() a callback, wrap build result events in it