Fix payments logic to actually insert