added purchase model and created table for it