Fixed database connection issues, fixed a more discriptive error page, made adjustments to the DBConnection class to better suit the web application enviroment.