added possibility to search only in specific database if multiple available