Refactor room occupation code and add util script

...to get the month/year occupation records for all rooms