Modification of phpmongotweet application to work with MongoDB Replica Sets