update the map

read data directly from data base