added get category to file and DB