added purchase model and created database table for it
purchases controller