find_database function

returns the paths of the given database