Optimize generating the reservation table by not querying the database to death.  Oy.
Continue previous optimization.  Really there must be a better way... maybe in version 2.