Build production SQL tools for LLM agents with proper auth, least-privilege access, and injection protection. PostgreSQL examples included.