query helper file added and category tree generated from the sqlite3 database