check whether cycle and monthly db has data