update nginx and db config