saving map overlay to database