Added Replicator related codes into Database class to pass some of DatabaseTest unit test cases.