Hello @BInurakp,
Only 1 database at a time can be configured using ODBC (only available when 3CX runs on Windows):
https://www.3cx.com/docs/odbc-search-phonebook-directory/
Another option could be using a template for server side integration, however this requires a REST service at the moment:
https://www.3cx.com/docs/crm-integration/
What you can do is creating a REST web service, which might run locally in the 3CX server, so this REST web service can perform the lookup in database 1 or database 2, according to your needs. But you will need to create that REST web service, and then create the template to use it from 3CX.
Kind regards.
Founded in 2005, when VoIP was an emerging technology, 3CX has gone on to establish itself as a global leader in business communications.