changed database.php a bit