Revised settings to include DB connection and to switch email verification to optional