A few modifications for MySQL Dialect...but still with the sequence problem