Added database router for using legacy db