Sets up database url environment variable