added purchase model and database