refactor db_accessor#batch_insert, get specs to pass