       )
     )
   )
+
+# drops the database
+gulp.task 'db:reset', ->
+  envName = 'dev'
+  db = mongodbUri.parse config.db[envName]
+  run(getMongoStr(db, null, 'reset'))
+  .exec( ->
+    log.info "Dropped database #{db.database}"
+  )

    )

# pass collection name as flag arg
gulp.task 'db:create:seed', ->
  # array of collection names based on model filenames
  collections = _.map fs.readdirSync('./models'), (f) -> f.replace('.coffee', 's')
  unless _.size(argv) == 3


getMongoStr = (db, filepath, type, collectionName) ->
  switch type
    when 'reset'
      "mongo #{db.database} --eval 'db.dropDatabase()'"
    when 'import'
      "
        mongoimport --db #{db.database} --collection #{collectionName}
