refactored all tables to use UUIDs, and implemented a better JSON system