Adds type info to db instances.