update automatic mappings in scandb schema to set up table relationships