title: issue creating new db in wordpress mysql
body: <p>I'm working on a WordPress theme that requires a db in mysql to store lots of data. </p>
  
  <p>I'm currently working on an installation script to install the theme. I have written a function to create a new db in the same mysql that WordPress uses it self.</p>
  
  <p>Every time i run the script, i get redirected to a page stating that WordPress is already installed. But I'm not trying to reinstall WordPress, just create a new db in the same sql that WordPress uses.</p>
  
  <p>I have also written a function to create new tables, which works fine so I'm sure there is no issues with connection.</p>
  
  <p><strong>If this helps, here is the function:</strong></p>
  
  <pre><code>function create_db_mysql(){
      require ('con_db_var/db_4216841335655434.php');
  
  $connect = mysql_connect($db_host,$db_user,$db_pswrd) or die(mysql_error());
  
  mysql_query("CREATE DATABASE theme_db",$connect);
  
  mysql_close($connect);
  
  }
  </code></pre>
  
  <p>I fetch the db info from wp-config.php.</p>
  
  <p><strong>so in the db_4216841335655434.php:</strong></p>
  
  <pre><code>require ('../../../wp-config.php');
  
  $db_host = ( DB_HOST );
  
  //etc etc....
  </code></pre>
  
  <p>when i call the <code>create_db_mysql()</code>, I get taken to a page telling me that WordPress is already installed and then followed by instructions on how to re-install.</p>
  
  <p>any ideas?</p>
  
  <p>thanks!</p>