old_contents: import os
  
  basedir = os.path.abspath(os.path.dirname(__file__))
  
  #SQLAlchemy
  if os.environ.get('DATABASE_URL') is None:
      SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/mlbframe.db'
  else:
      SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
  
  SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
  SQLALCHEMY_TRACK_MODIFICATIONS = False
new_contents: import os
  
  basedir = os.path.abspath(os.path.dirname(__file__))
  
  #SQLAlchemy
  if os.environ.get('DATABASE_URL') is None:
      SQLALCHEMY_DATABASE_URI = 'sqlite:///mlbframe.db'
  else:
      SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
  
  SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
  SQLALCHEMY_TRACK_MODIFICATIONS = False
subject: change db location to relative location so it doesn't get clobbered in tmp