query adapter updates for mysql