function addOffer checks and inserts the inputs into db