minor SQL change