I have to build a calendar where the information inside it is all database driven. How would I do this without opening and closing the database 31 times each month?

I already have the calendar built, it's just populating the days that is the problem.