title: Load database connection data dynamically in Codeigniter
body: <p>I'm trying to accomplish the following functionality: I have a main connection to a database (inside application/config/database.php: db['default']), and that connections work, it retrieves data,  I want to use that data to establish a new connection to a different DB.</p>
  
  <p>Is that possible or I need to create an external PDO connection to handle it? </p>
  
  <p>(I'm using Codeigniter 3.1.0)</p>