First of all, you are confused about cases and not just Russian nouns.

Now, to make it simple... cases are like the word order in English. Cases are simply word endings that show what role a noun plays in a sentence. Learn the cases. Learn the case endings. And then you'll be able to generate all those tables automatically... except for the exceptions, of course