fix that sql names weren't actually logged

What it says.