Fixed initialization of link_db