import sqlite3


def initalise_connection(db_file):
    """ create a database connection to the SQLite database
        specified by the db_file """
    conn = None
    try:
        conn = sqlite3.connect(db_file)
        c = conn.cursor()
        c.execute("""CREATE TABLE IF NOT EXISTS files (
                         bucket text NOT NULL,
                         filepath text NOT NULL); """)
    except sqlite3.Error as e:
        print(e)
    return conn