pub fn get_id_gen(db: &DB, id: u64) -> i64
Get the IdGen field for a table. This is only needed to initialise system tables.