added purchases to the database:
update branch with invoice.rb