import sqlite3


def connect(db_file):
    """
    Connect to an existing sqlite database file.

    :param db_file: string - path to database file
    :return: connection object or None
    """
    try:
        conn = sqlite3.connect(db_file)
        c = conn.cursor()
        return conn, c
    except sqlite3.Error as err:
        print(err)