Added Master Server Config

If the server is set as master and only then it will deal with the database log table cleanup.