Changed bulk insert to use stock pq instead of forked pq.