adding better compacting using pg_stats, and bumping version