bug fixed with database env name