added middleware to format input for findAll query