deleting link_db