finish_gem_and_bridge_table