how to organize the support of the two databases (mysqk and mongodb), there is an idea to use the DAO pattern, but are interested in the question of how the application will know which database is used (when selected by the user)