Fixed DB code and settings. First DB test using test_db.php.