new support for environment variables in database handling