def decrement_market(market):
    if market.occurrences == 1:
        database_wrapper.remove_entity(market)
    else:
        market.occurrences -= 1
        database_wrapper.save_entity(market)
def decrement_market(market):
    if market.occurrences == 1:
        database_wrapper.remove_entity(market)
    else:
        market.occurrences -= 1
        database_wrapper.save_entity(market)
def decrement_skill(skill):
    if skill.occurrences == 1:
        database_wrapper.remove_entity(skill)
    else:
        skill.occurrences -= 1
        database_wrapper.save_entity(skill)