dynamic environment for database