Updated record linkage and include sql script in convenience