import sqlite3


def open_db(database):
    """ Helper functiom to open a database connection
    :param db: database file
    :return: connection object and cursor
    """
    # Make connection to storage database
    conn = sqlite3.connect(database)
    c = conn.cursor()

    return conn, c