Small fix for category_id
Merge pull request #357 from LipuFei/dbrefactory-small-fixes

Small fix for DB refactory