move schedule durations into db