added changes in DataBase.php