sql sequence fix