Created a connectToDatabase() function in dbops.php that is now called
from all pages requiring a database connection. This will make it easier
to edit connection details.