database schema and tool to import mail