Fixed id generation strategy for mysql