Added primary database creation code to setup.php, once the primary database is created the index page will no longer automatically redirect to the setup page