Improve logic
Use assert, this should always exist
Fix mailbox listing
Save message headers to DB