Use of the return value of StatementInterface::execute()

The MVC component is event driven and therefore you can use a listener which is listen to one of the existing MVC events. In the listener you can execute your code.
This allows to define when your code will be executed (listener is triggered) and you can access the servicemanager of your application (to get the database adapter or something else).

Some examples can be found in the documentation or here in the forum.

One of the examples: Redirecting...