Loop Redirect

Hello, I have a problem. In controller there is the action and this action has redirect. When action is implemented then is redirected to defined page. But is bug. Sometime action is implemented a few times and after that is redirected. Make loop implement of action. It is add a few rows in base. I have noted curiosity, it makes this loop only after mysql procedure execution, not after simple adding row to database.