Add if existing checks for config sections

plugins, smtp and databases