record key names and source names in separate tables