 exports.init = (grunt) ->
   shell = require("shelljs")
   lineReader = require("line-reader")
+  
   exports = {}
 
   exports.db_dump = (config, output_paths) ->
     grunt.file.mkdir output_paths.dir
-    cmd = exports.mysqldump_cmd(config)
+
+    if config.table_prefix
+      console.log "Using table prefix " + config.table_prefix
+      cmd = exports.prefixed_mysqldump_cmd(config)
+    else
+      console.log "NOT using table prefix " + config.table_prefix
+      cmd = exports.mysqldump_cmd(config)
+    
     grunt.log.oklns "dump command: " + cmd
+    
     output = shell.exec(cmd,
       silent: true
     ).output
+    
     grunt.file.write output_paths.file, output
     grunt.log.oklns "Database DUMP succesfully exported to: " + output_paths.file
+    
     return
 
   
   #==========  Caliper mods  ==========
-  
-  exports.db_dump_ess = (config, output_paths) ->
-    grunt.file.mkdir output_paths.dir
-    return  unless config.table_prefix
+
+
+  exports.prefixed_mysqldump_cmd = (config) ->
+
     prefix_matches = exports.all_table_prefix_matches(config)
     grunt.log.oklns "Prefix matches from '" + config.table_prefix + "'"
     console.log prefix_matches
+
     tables_to_dump = exports.tables_to_dump(config, prefix_matches)
     grunt.log.oklns "Tables to dump"
+
     console.log tables_to_dump
     prefixed_sqldump = exports.prefixed_sqldump(config, tables_to_dump)
     grunt.file.write output_paths.file, prefixed_sqldump

        user: config.user
        pass: config.pass
        database: config.database
    )
    comparison = ""
    i = 0

        user: config.user
        pass: config.pass
        database: config.database
        host: config.host
    )
    tables_sql = grunt.template.process(prefix_match_tpls.sql,
      data:
