edited client sql