Added code to get database url from environment