def _create_tbl_stmt(name, keys, pkey="id", pktype="INTEGER"):
    """
    :param name: Table name
    :param keys: Keys
    :param pkey: Primary key name
    :param pktype: SQL type of primary key

    :return: SQL statement to create a table
    """
    kts = ["{} {}".format(k, pktype + " PRIMARY KEY" if k == pkey else "TEXT")
           for k in keys]
    return "CREATE TABLE IF NOT EXISTS '{}' ({})".format(name, ", ".join(kts))