specify DB names in queries.  now it works.