api4 = activerecord, api3 = sequel