Here's your best approach:
Use less baking soda than hydrogen peroxide, and make sure your paste isn't gritty.
Combine about two tablespoons of hydrogen peroxide with one tablespoon of baking soda.
Stir it into a paste and start brushing.
Let the paste stand about a minute and then rinse.