Added slave sql