I have never used a master/slave setup for my mysql databases so please forgive if I make no sense here.
I am curious, let\'s say I want to have a master DB and 3
What you want to use (and research) is MySQL Replication. This is handled completely independent of your code. You work with the database the same as if there were 1 or 100 servers.