A national database of ballistic images that matches guns and shell casings recovered by police — is not new. But experts say it’s a tool that some departments are still using poorly.