adding quotes around repeat for sql