Modified db.php to use mysqli since mysql_connect is depricated.