import sqlite3


def init_db(db):
    """
    Function to initialize the connection and cursor objects
    """
    connection = sqlite3.connect(db)
    cursor = connection.cursor()
    return connection, cursor