Changed db.inc.php to use constants