polymorphic model,db and arrows