basis for postOffer, mysqli implemented