db interaction + category routes