update nginx conf, db connect example