adding test for SI, fixing db schema
set up purchase payment tables
api for purchase payments
added API for purchase payment allocation