Implemented the connect() method for Mysql