fix database environment variable