[TASK][Check] Add sql.safe_mode handling