Moved project into files directory for cleanliness

This commit also adds a numpurchased database entry for
every user to track the number of items they have purchased.

Also fixed a bug where only the first item bought had its
'totalpurchased' database value incremented.