Big ovarhaul .This should work after updating settings.php to match database settings.