added schedule and ret_per defs, values are still ints in the db