fixed Task Completion handling + separate DB for each email type