set db connection and ip