anchor.diff:  	Recs = [M || #battlemap{name = FName} = M <- Maps, FName == Name],
   	case Recs of
   		[] ->
  -			BattleMap = boss_record:new(rpgb_battlemap, [{owner_id, Userid}]),
  -			{ok, BattleMap0} = BattleMap:save(),
  +			BattleMap = #battlemap{owner_id = Userid},
  +			{ok, BattleMap0} = rpgb_data:save_battlemap(BattleMap),
   			{ok, BattleMap1} = rpgb_json:from_json({struct, Props}, BattleMap0),
   			NameSlug = rpgb:sluggify(Name),
   			Uri = rpgb:get_url(["battles", BattleMap0:id(),NameSlug]),
  
positive.code: 		E -> E
  	end,
  	Conditions = [{owner_id, equals, proplists:get_value(id, User)}],
  	{ok, Records} = rpgb_data:get_battlemaps_by_owner_id(proplists:get_value(id, User)),
  	Jsons = [begin
  		Url = rpgb:get_url(["battles",Rid,"slug"]),
  		Name = Rname,
  
negative.code: 		Name ->
  			{false, ReqData, Ctx};
  		OtherName ->
  			MapsList = case rpgb_data:get_battlemaps_by_owner(BattleMap#battlemap.owner_id) of
  				{ok, ML} -> ML;
  				Else -> []
  			end,
  