Add db-setting again, use _SERVER to judege the environment