updated comments
Implemented the query Function & Refactored my Code to use the Database Class