My question is, what if you carry a gun you legally purchased from another state, that clearly wouldn't turn up in the sales database if the police runs your serial number

What happens then, does that mean if you plan on carrying a gun you purchased out of state that you have to carry your receipt with you to prove ownership?

Can they arrest you on the suspicion that the gun was stolen if it doesn't come up?