[eluser]wiredesignz[/eluser]
If you are still determined to use the library method then at least load a model in your library or helper instead of making db calls directly.
Imagine if you do have 100 helpers and need to alter the db structure, at least using a model for obtaining data means your db code is centralised.