revise lattice_document to lattice_type. Move url to lattice table