Updated DBHelper to have update method

and handle expired emails