added categories db method and linked to activity