table bulk load query for postgres