adding fallback for db url