set up for geting email and storing to db