'Create table in convenient way.'

def create_table(self, name, columns, pk_columns=()):

    if (not name):
        raise ValueError('create_table    requires    a    table    name')
    if (not columns):
        raise ValueError('create_table    requires    column    names    and    types')
    query = ('CREATE    TABLE    %s    (' % name)
    all_columns = []
    for column_data in columns:
        (column_name, column_type) = column_data
        all_columns.append(('%s    %s' % (column_name, column_type)))
    query += ',    '.join(all_columns)
    if pk_columns:
        query += (',    PRIMARY    KEY    (%s)' % ','.join(pk_columns))
    query += ')'
    return self.execute(query, commit=True)
