Implemented master slave doctrine connection