Checking for Database Existence in our Constructor

I've took my code from my create-db.php deals mainly with the creating of the database and put it into my database.php . I also corrected an error which I encountered, but had coded a while back. I also required my databse.php in my config.php .