add sql mongo dump middleware