Created a file in Controller

I created create-db.php in my Controller folder. I also linked it to my database.php
Created $Connection

Made a variable called $connection in my create-db.php Also made an if else statement to check if it errors or not, if so, it kills the connection.
Fixes to my PHP code

I fixed issues regarding where files would be located at using __DIR__