 
     dest = if config.ssh_host? then 'remote' else 'local'
 
-    grunt.log.oklns "Creating prefixed DUMP of " + dest + " database [" + config.database + "/" + config.table_prefix + "]"
+    grunt.log.ok "Creating DUMP of " + dest + " database '" + config.database + "' with prefix '" + config.table_prefix + "'"
 
     # console.log "prefixed sqldump cmd\n" + cmd
     cmd

exports.init = (grunt) ->
  shell = require("shelljs")
  lineReader = require("line-reader")
  
  exports = {}

  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
      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:"
    console.log cmd
    
    output = shell.exec(cmd,
      silent: true

      if target_string.indexOf(search) isnt -1
        length = matches[1]
        delimiter = matches[2]

        # Replace the url
        new_url = target_string.replace(search, replace)
        length -= length_delta
