Category db working