Started working on DB

Init, exit and readCategories started.