Simplified database access code
Fixed error in requestCategories, works now; requestCategorymembers still not working