refactoring on joblog table.