checkOverdue query functional, needs more testing