Try using this diagram: http://codex.wordpress.org/images/9/9e/WP3.0-ERD.pngto see the database layout.