imap: remove extra variable assignment
db, imap: add Subject field to ThreadDb
db, imap: add MessageDb to store message headers