Fixed a bug with config.php

I fixed a bug in which the admin could not use config.php
becuase I included it in DatabaseConnection.class.php. To
fix the problem, I instead let DatabaseConnection access
the variables as global variables. By doing this the variables
can be accessed from the root and admin directories