def db_execute(cc, statements):

    if type(statements) not in (list, tuple):
        statements = [statements]

    for statement in statements:
        cc.execute(statement)
excute a statement or statements against a cursor
dataset/ETHPy150Open CGATOxford/cgat/CGAT/Database.py/db_execute