Added DB tracking of MailDir queues.
Fixed UI menus for different roles.