Implementing more MUC stuff

And slightly modify the logging and split out database things