Fixup codebase a little, now compatible with mysql. Also, fully completed the basic checking in the controller for slots.