module Geocoder::MaxmindDatabase

def insert(package, dir = "tmp")

def insert(package, dir = "tmp")
  data_files(package, dir).each do |filepath,table|
    print "Resetting table #{table}..."
    ActiveRecord::Base.connection.execute("DELETE FROM #{table}")
    puts "done"
    insert_into_table(table, filepath)
  end
end