All wiki service functions expect db as first argument but routes were passing tenant_id as first argument. This caused 500 on /wiki/articles, /wiki/categories, and all wiki endpoints.