It seems that MSMQ doesn't use any Database management system to manage messages.
How does MSMQ manage messages?
Does it store the messages in flat file?
I'm trying to implement a messages management system.
MSMQ uses flat files located in %windir%\system32\msmq.
If you want to implement your own queueing, I suggest you take a look at Ayende's blog post on queueing