Med,
Welcome to CodeRanch!
Your tag file shouldn't be accessing the database. Just like JSPs shouldn't access the database, neither should tag files - they are still view.
Instead create a
servlet filter to access the database and put the relevant data in the request/session. Then your tag file just has to read and render them.