add debug log if the replication is not started b/c db not open