Fixed mysql map issues