Once I was stopped by Danish authorities in the airport when I returned from a trip. They took my residence permit data in order to establish whether I get welfare and was travelling abroad which is prohibited in that case. Didn't feel like being in a democratic state afterwards at all