better code for finding one of a number of databases
export fns