Second Update of database.php