C++ code to search through multiple databases.