loading map from database