fixing some string to int conversions for req.params.id