Payments db schema v2

This is also ready for review and merging, third in line for takeoff after #45 and #43 .