code: def get_connection(db_type, db_pth, user=None, password=None, name=None):
      
      if db_type == 'sqlite':
          print(db_pth)
          conn = sqlite3.connect(db_pth)
      elif db_type == 'mysql':
          import mysql.connector
          conn = mysql.connector.connect(user=user, password=password, database=name)
      elif db_type == 'django_mysql':
          from django.db import connection as conn
      else:
          print('unsupported database type: {}, choices are "sqlite", "mysql" or "django_mysql"'.format(db_type))
  
      return conn
docs: Get a connection to a SQL database. Can be used for SQLite, MySQL or Django MySQL database
  
      Example:
          >>> from msp2db.db import get_connection
          >>> conn = get_connection('sqlite', 'library.db')
  
      If using "mysql" mysql.connector needs to be installed.
  
      If using "django_mysql" Django needs to be installed.
  
      Args:
          db_type (str): Type of database can either be "sqlite", "mysql" or "django_mysql"
  
  
      Returns:
         sql connection object