Replicas db update code added