Revision 23 (Final Winter 2013)

Completed receipt function, now deducts from database