still working on reading the mails out from the database..