removed unused tables set up polymorph