Code cleanup: extract environment detection code into a class method, use class variable for logger
Fix copypasted comment
Increase database connection pool on CI before adding multi-threading tests