wal_level set to replica at database level but i dont see that in configuration file
replica is the default value for wal_level.
“Default” means the value that is used if the configuration files fail to provide a setting for the parameter. It is a value that is hard coded into the postgres executable.
postgresql.conf contains most parameters “commented out” and with their default values. This may be confusing at first, but documents both the parameters and their default values.