Added purchase model and created database table for it
corrected bug with the amount field in the charges controller