BUG FIX: periodic task roll wasn't write to database; REFACTORING