private void insertMovie(String movieName, String filename, String year, String quality) {
		if(filename == null || filename.equals("")){
			filename = "";
		}
		
		if(year == null || year.equals("")){
			year = "";
		}
		
		if(quality == null || quality.equals("")){
			quality = "";
		}
		
		String query = "Insert INTO MovieNames (title, year, quality, filename) VALUES ('" + movieName
				+ "', '" + year + "', '" + quality + "', '" + filename + "')";

		try {
			Class.forName("com.mysql.jdbc.Driver");
			Connection con = DriverManager.getConnection(dbUrl, dbUser,
					dbPassword);
			Statement stmt = con.createStatement();
			stmt.execute(query);

			con.close();
		}

		catch (ClassNotFoundException e) {
			e.printStackTrace();
		}

		catch (SQLException e) {
			e.printStackTrace();
		}
	}