Improving database and email