def insert(table, values=(), **kwargs):
    """Convenience wrapper for database INSERT."""
    values = dict(values, **kwargs).items()
    sql, args = makeSQL("INSERT", table, values=values)
    return execute(sql, args).lastrowid