diff --git a/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster.sh b/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster.sh
index a2424a3514..5b6752398e 100644
--- a/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster.sh
+++ b/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/copyDataToImpalaCluster.sh
@@ -7,7 +7,7 @@ then
fi
#export HADOOP_USER_NAME="dimitris.pierrakos"
-export HADOOP_USER_NAME=$4
+export HADOOP_USER_NAME=$5
function copydb() {
db=$1
@@ -52,10 +52,10 @@ function copydb() {
STATS_DB=$1
MONITOR_DB=$2
OBSERVATORY_DB=$3
-HADOOP_USER_NAME=$4
-#EXT_DB=$4
+EXT_DB=$4
+HADOOP_USER_NAME=$5
-#copydb $EXT_DB
+copydb $EXT_DB
copydb $STATS_DB
copydb $MONITOR_DB
copydb $OBSERVATORY_DB
diff --git a/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml b/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml
index 558b9544fe..31a7a17c55 100644
--- a/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml
+++ b/dhp-workflows/dhp-stats-update/src/main/resources/eu/dnetlib/dhp/oa/graph/stats/oozie_app/workflow.xml
@@ -432,6 +432,7 @@
${stats_db_name}
${monitor_db_name}
${observatory_db_name}
+ ${stats_ext}
${hadoop_user_name}
copyDataToImpalaCluster.sh