added mgid_to_kbid lookup in lib