added option to enable/disable email & database, added subject config