Connected the graph of RecordLog/UserPair/UserPairsForUser and use it in create_record.