Implement scanDatabase for Reference Link and Select Box Link fields

This pull request allows RL and SBL fields to be correctly used as 'Unique' values.