Update global.php

Adds database connection