add database and fix bugs
update email stuff