Added support for multiple mode of routes db and proxy