removing old database.php method