Implement scanDatabase for both Reference Link and Select Box Link fields