Timer insert delete

Pull request tries to:
1. Fix DurantionHelper issue (DurantionHelperTest)
2. Simplify mysql job queries.