Start on environment mysql refactor