DAO Revision for caching mysql results and reducing number of queries in general. Which required minor additional alterations.