added methods for db access, language lookup and initiated email class