Get config file

def get_config(override=None):
    """ Get config file """

    # Set location
    config_path = os.path.expanduser('~') + '/.dbschema.yml'
    if override:
        config_path = override

    # Check if the config file exists
    check_exists(config_path)

    # Load config
    with open(config_path) as f:
        # use safe_load instead load
        config = yaml.safe_load(f)

    return config