add check routines to avoid duplicates

add some routines to avoid duplicates.
TODO: make a list of instruments, locations, components, and devices