now outputs old and new values on db change