Sequel extension to allow bulk upserts in postgresql