correct sql text