Update and rename api.php to connect.php