Lots of changes. Changed the database. Should be more efficient now. And then cascaded these changes across all the files that access the DB. Still need to sort out the file structure though.