add the viewmap from database