Update environment detection
Configure database