Adding db tests for getBuildRequestBySourcestamps