Adds refresh slaves and masters script