Applying database config