Saving maps only when they were updated

This PR fixes a bug that server saves maps every minute, not checking whether they were changed.