LAME is not a ripper or a tagger. It's simply an encoder engine. It doesn't have CDDB, it can't. It can't work by itself, it needs to be integrated into a larger process, which is three steps.

Step 1: Rip into WAV format.
Step 2: Encode to MP3 (that's where LAME comes in).
Step 3: Tag.

There are a lot of packages which do all three and can also incorporate LAME in the second step seamlessly. For more details on what each of the three parts is, and what to watch out for at each step, click here.
_________________________
Tony Fabris