Added mysql read-write server separation (issue #2218)