[fix] pairing links
Reorganize pairCustom function and use a database transaction to perform actions.
Match current year when checking pair table.
[fix] Old column name