modified database.php