added update for mysql map