LPS-47071 Optimize ResetDatabaseExecutionTestListener

Finally, last piece of this ticket!