Improve db diff