Modify upload related config for postgres.