
# def view_task(action,params):
#     # cursor object
#     cursorObj = con.cursor()
#     # execute the query
#     cursorObj.execute(action,params)
#     con.commit()
#     return cursorObj.lastrowid


# def history_task(action,params):
#     # cursor object
#     cursorObj = con.cursor()
#     # execute the query
#     cursorObj.execute(action,params)
#     con.commit()
#     return cursorObj.lastrowid

# # complete a task
# def complete_task(action,params):
#     # cursor object
#     cursorObj = con.cursor()
#     # execute the query
#     cursorObj.execute(action,params)
#     con.commit()
#     return cursorObj.lastrowid

# # delete a task
# def add_task(action,params):
#     # cursor object
#     cursorObj = con.cursor()
#     # execute the query
#     cursorObj.execute(action,params)
#     con.commit()
#     return cursorObj.lastrowid
