Completely recoded the portal data system so it stores the data in a
cleaner way.