I haven't tried changing ID #'s, but I would guess links.db is the only place you need to change it. From what I've seen of the other data files, they all seem to be updated based on what's in links.db (aside from category files). I'm not sure if this also holds if you are changing the top (highest) ID number. Someone with more experience of the inner workings might need to answer that.