several changes. started adding db code to replace bcpao. removed
searches by PlatBook because found that sometimes more than one result
is being returned, and the first is being picked, which is wrong.