fix db replication key