Refactor dump_loader.rb, now supports PostgreSQL