public void connect()
    {
    	try
		{
    		Class.forName("com.mysql.jdbc.Driver");
    		con = DriverManager.getConnection(url,user, password);
			st = con.createStatement();
		} catch (SQLException e)
        {
            e.printStackTrace();
        } catch (ClassNotFoundException e)
        {
            e.printStackTrace();
        }
    }