dbConnect is now object oriented
added getCategoryTree function