fixed db save that fails randomly when two instances with different values not successful when asserting not equal