Fetch mails from IMAP server into database (SQLite/MySQL)