fix wildcard in DBS query