fixed database and added email