fn get_item_ids_and_ts(
    db: &Db,
    tree: &str,
    id: u32
) -> Result<Vec<(u32, i64)>, AppError>