checking for environment detection
database connection added