I'd also like to point out that there are a number of issues with the current system besides what you've mentioned that could improve things. For starters, even if this person was involuntarily committed, he would fail a background check, but would still be able to purchase guns online or at a gun show without a background check. There are red flag laws, which allow people to petition the court to temporarily seize guns from someone acting in a disturbing way, which would have been ideal for this case, but these are only in some states.
Online or by-mail purchases can only be shipped to an in-state dealer, where you must complete a background check.
This has been the case for twenty years.
Neither can you do so at a gun show. The same laws apply.
You can not legally obtain a weapon from a licensed dealer without a background check. Period.
If you derive any notable income from selling weapons, then you are legally required to register as a dealer. Failure to do so is a federal felony.
This is why weapons used in crimes do not generally come from legal sources. The vast majority are either stolen, or illegally purchased by a friend of family member.
[1] http://www.miamiherald.com/news/local/community/broward/arti...