Adding db tests for updateSourceStamps