check mail is now based on db and not session cookie