fix sql again