Using active record for the web stuff
Added precent purchased graphs