Can't connect to localhost mysql using custom database

And i have 1 more question. I want to use auth0 DB to store some sensitive data like email and password. Other information i will store at my external DB, and i will create field auth0_id to get data in auth0. Is it possible to use 2 DB at the same time?