Update database.py
Update database.py
added email condition; tbd:edit page