Basic setup for tickets that are used for inter-server communication, fixed some issues with foreign keys