Add log model and add scopes to mailbox model