Exactly!!!
In Canada before we can even think about purchasing a firearm we need to take a safety course.
My course lasted for 6 weeks and was one night a week. Then there is written and practical tests to pass before you can apply for a license to even purchase/own a firearm. Then when you apply for your license (there are a couple of levels most often applied for unrestricted (long guns and shot guns) and restricted (handguns and other restricted firearms) you send in all the paper work and the RCMP runs a background check on you (takes weeks). Then if you are approved you get your license and are able to go into a gun shop and purchase a firearm. They take down all the info off the card when you purchase and after you pay for it you leave the shop.
You have to renew your license every 5 years which helps weed out the undesirables (wife beaters, crooks) who have popped up. They are then denied a license because of their transgressions.
This keeps the majority of mental cases gun free. There are still illegal guns around but nothing like the States because down there the 2nd amendment says "every body gets guns"!!! No training and lax background checks.
On black Friday the FBI got 185,000 checks to do.
Tell me how they can manage to not make an error with numbers like that?
Our system may not be perfect but I do believe it is a lot better than the one in the US.