WIP merging support

We now merge databases, but we do not merge the lookup paths on
databases from the parent. This will require either copying and
mutating the parent database records or it will require a
separation between the lookups and the database list. I have not
decided which is preferable.