Added purchase model and created database table