Data analysis and correction tools for auditing a Postgres database