 
   exports.db_dump = (config, output_paths) ->
     grunt.file.mkdir output_paths.dir
+
+    console.log config, 'config'
 
     if config.table_prefix
       console.log "Using table prefix " + config.table_prefix

  #==========  Caliper mods  ==========


  exports.prefixed_mysqldump_cmd = (config) ->

    prefix_matches = exports.all_table_prefix_matches(config)
    grunt.log.oklns "Prefix matches from '" + config.table_prefix + "'"

    
    cmd = exports.add_ssh_connect config, cmd if config.ssh_host?

    # console.log "tables to dump cmd \n" + cmd

    # Make sure you strip the new line chars
    tables_to_dump = shell.exec(cmd,
      silent: true
    ).output.replace(/(\r\n|\n|\r)/g, "")

    # console.log "tables_to_dump\n" + tables_to_dump

    tables_to_dump.split " "

  
  # Run the mysqldump cmd and append the table names from exports.tables_to_dump() fn
  exports.build_prefixed_sqldump = (config, tables_to_dump) ->
    return false  unless tables_to_dump
    cmd = exports.mysqldump_cmd(config) + " " + tables_to_dump.join(" ")

    dest = if config.ssh_host? then 'remote' else 'local'

    grunt.log.oklns "Creating prefixed DUMP of " + dest + " database [" + config.database + "/" + config.table_prefix + "]"

    # console.log "prefixed sqldump cmd\n" + cmd
    cmd
  
  exports.add_ssh_connect = ( config, cmd ) ->
