diff --git a/db_create.php b/db_create.php
index debf68aea..db4f090ac 100755
--- a/db_create.php
+++ b/db_create.php
@@ -54,7 +54,45 @@ if (! $result) {
$GLOBALS['db'] = $new_db;
if($GLOBALS['is_ajax_request'] == true) {
- PMA_ajaxResponse($message, true);
+
+ $extra_data['sql_query'] = PMA_showMessage(NULL, $sql_query, 'success');
+
+ //Construct the html for the new database, so that it can be appended to the list of databases on server_databases.php
+
+ $db_url_params['db'] = $new_db;
+
+ $is_superuser = PMA_isSuperuser();
+
+ $new_db_string = '