Database subroutines were practically rewritten. Changed config parameters ESLEnable and SMTPEnable valid values to 1 and 0, instead of 'on' and 'off'.