load email settings from database