 
       echo '#---> CREATING VANILLA KODING DB @gokmen <---#'
 
-      mongo #{credentials.mongo} --eval "db.dropDatabase()"
-
-      cd #{options.projectRoot}/install/docker-mongo
-      if [[ -f #{options.projectRoot}/install/docker-mongo/custom-db-dump.tar.bz2 ]]; then
-        tar jxvf #{options.projectRoot}/install/docker-mongo/custom-db-dump.tar.bz2
+      mongo $KONFIG_MONGO --eval "db.dropDatabase()"
+
+      pushd $KONFIG_PROJECTROOT/install/docker-mongo
+      if [[ -f $KONFIG_PROJECTROOT/install/docker-mongo/custom-db-dump.tar.bz2 ]]; then
+        tar jxvf $KONFIG_PROJECTROOT/install/docker-mongo/custom-db-dump.tar.bz2
       else
-        tar jxvf #{options.projectRoot}/install/docker-mongo/default-db-dump.tar.bz2
-      fi
-      mongorestore -h#{options.boot2dockerbox} -dkoding dump/koding
+        tar jxvf $KONFIG_PROJECTROOT/install/docker-mongo/default-db-dump.tar.bz2
+      fi
+
+      read HOST _ DB <<<"$(echo $KONFIG_MONGO | awk -F '[:/]' '{ print $1, $2, $3}')"
+      mongorestore --host $HOST --db $DB dump/koding
+
       rm -rf ./dump
 
       updatePermissions

      go test koding/vmwatcher -test.v=true

    elif [ "$1" == "janitortests" ]; then
      cd go/src/koding/workers/janitor
      ./test.sh

    elif [ "$1" == "gatheringestortests" ]; then


      if [ "$2" == "--yes" ]; then

        env PGPASSWORD=social_superuser psql -tA -h $KONFIG_POSTGRES_HOST $KONFIG_POSTGRES_DBNAME -U social_superuser -c "DELETE FROM \"api\".\"channel_participant\"; DELETE FROM \"api\".\"channel\";DELETE FROM \"api\".\"account\";"
        restoredefaultmongodump
        migrateusers

