Judging from this question, there are no rules for training animals, so right off the bat you are entering homebrew territory.
If your DM is willing, then maybe you could train rats to help you. You can use spells such as Beast Bond and Speak With Animals to try and communicate with itthem. Talk to itthem, bribe itthem, and train itthem using these spells. (Animal Friendship may not help much, other than to let you try andto persuade it, which won'twouldn't work unless you are speaking with it).)
DISCLAIMERDisclaimer: Rat'sA rat's INT score is 2. Training it may becomebe very difficult.
All in all, it is up to your DM whether or not you can do this.