Added settings, permission checks and the tags table (still need to figure out how to properly save and load them)