restrict queries to a single database