Separate Database Logic from Main Site

Modify config.php