changes to purchases.php still not complete, but better then before.
Merge branch 'master' of https://github.com/gminaker/databases