Ensure that environTag is always set on state.State when Opened

When we Open state we need to set the environment tag.

Previously the environment tag was only specified when the database was initialized.  Now we set it every time the database connection is opened.  This is required for when we have multiple environments, and we want to filter the results based on the current environment.

A follow-up branch will update this tag based on the environment uuid from the api server when passing the state connection to the facades of the API server.
This is different to line 75, why are there so many variants of uuid in this test ?