Use the transaction staging database if it is available.

This function was allowing commands to bypass the transaction index and access the parent injector's staging database.