Only update database (and SOA record) if anything actually changed. Fix #1.