Refactored away some of the register model.

The db builder now deal with callbacks if this is the first item in the table.