Updated chat.php

Reuse of one "connect.php" file for mysql connection