added email form code to sqlite db