The library file is just an interface between controller and model. I consider the library structure as follows:
- model -- simple getters and setters, to retrieve and save data
- library -- process data from model or user (like validating user's password)
- controller -- control behaviour of the end-user interface
So if you just want to get data from user_profile table and show them to user, or save user input to database, there's no needs in extra-layer between model and controller. Just add another model file, put all required methods in it an call them directly from controller.