added scope search function with variable databases count