Save data to mongodb through code

Okay, so I think u mean something like this:

defmodule Friends do
  def save() do
    IO.puts "start"
    person = %Friends.Person{}
    Friends.Repo.insert(person)
    IO.puts "saved"
  end
end

Friends.save()

Unfortunately when I try start it through mix mistake still the same: