merge two class of Model into a db table