An AI that can query a database could be tricked into showing salaries or passwords. Telling it "don't" is not protection.
What I did
Layer 1: a normal user's AI is never given the salary or password tools.
Layer 2, the real protection: the database account for normal users has no access to those tables at all.
Layer 3: a short list of obvious salary questions gets a polite refusal early. It only makes the message friendlier, and the database still says no if it misses something.
What to know
The command-line version has no real login, so this protection applies to the web version.