Update connect_func.php