PostgreSQL backtick cleaning

Fixes #2187