bunch of sql, getting ready for comparative analysis, payments pulled