Move CheckAtMostOneLatest and CheckUniqueLoopDm to be private methods

Both CheckAtMostOneLatest and CheckUniqueLoopDm are implementation
details are not supposed to be called outside of ApexDatabase.

Test: builds
Change-Id: Id405fbe6470ab20822c93fc890a72be6a670ec44
1 file changed