Gets the database information of a MySQL layer to generate the database config file