Using Knowledge Bases to Improve LLM-based Feedback on Code Quality