Add database router to fix master-slave issues.