Fix indexes for mysql