Added adding and updating to map.php