refractored logger object, updated SubCategoryDAO, js included