I do think there's a reasonably compelling case that drug companies could make for wanting to measure/demonstrate their drug's performance in an ideal population first - now the fact that they then go on to market the product with little to no care for the populations excluded from the trials undercuts this significantly. But it is at least possible that its not entirely shenanigans...
I'd recommend taking a look at AWS' serverless offerings - specifically API gateway and python lambda backend fxns. You get exactly what you need, nothing you don't and its extremely quick to get set up.