public DefaultListModel<String> findOrder(String input) {
			/*Adds wildcard on both sides of the search phrase*/
		input = "%" + input + "%";

            /*tries to setup a connection to the database*/
		try (Connection con = DriverManager.getConnection(URL, username, password)) {
				/*tries to create a prepared statement.*/
			try (
					PreparedStatement prepStat = con.prepareStatement("SELECT * FROM customer LEFT JOIN orders " +
							"ON customer.customer_id = orders.customer_id " +
							"WHERE clean_fn LIKE ? OR clean_ln LIKE ? OR phonenumber LIKE ?" +
							"OR postalcode LIKE ? ORDER BY order_id DESC")
			) {
					/*Inserts the input search string to the SQL in the prepared statement*/
				con.setAutoCommit(false);
				prepStat.setString(1, input);       //clean firstname
				prepStat.setString(2, input);       //clean lastname
				if (input.length() < 5) {
					prepStat.setString(3, "00000000");       //not a phonenumber
				} else {
					prepStat.setString(3, input);       //phone number
				}
				prepStat.setString(4, input);       //postal code
				ResultSet rs = prepStat.executeQuery();
				con.commit();
				con.setAutoCommit(true);

                    /* Declares and initializes the return DefaultListModel*/
				DefaultListModel<String> output = new DefaultListModel<>();
                    
                    /*creates the objects that has matching attributes to the search phrase*/
				String inputObject = "Order ID:  Customer: Lastname, Firstname   Order Time:";
				output.addElement(inputObject);
				while (rs.next()) {
					//Break the loop if order_id = 0
					if (rs.getInt("order_id") <= 0) {
						break;
					}
					//Select the input and creates a string that is 64 signs long or more.
					inputObject = rs.getInt("order_id") + "";
					int space1 = 12;
					int space2 = 44;
					if (inputObject.length() + 2 < space1) {
						space1 = space1 - inputObject.length();
					} else {
						space1 = 2;
					}
					for (int i = 1; i < space1; i++) {
						inputObject += " ";
					}
					inputObject += rs.getString("lastname") + ", " + rs.getString("firstname");

					if (inputObject.length() + 2 < space2) {
						space2 = space2 - inputObject.length();
					} else {
						space2 = 2;
					}
					for (int i = 1; i < space2; i++) {
						inputObject += " ";
					}
					inputObject += rs.getTimestamp("time_of_order");
                            /*Adds the object to the DefaultListModel*/
					output.addElement(inputObject);
				}
                    /*returns the List of cusomer objects with a match to the search phrase*/
				return output;
			} catch (SQLException ePrepState) {
				gui.Gui.showErrorMessage(DATABASE_NUMBER, 1, ePrepState);
				cleanup.dbRollback(con);
				return null;
			}
		} catch (SQLException eCon) {
			gui.Gui.showErrorMessage(DATABASE_NUMBER, 2, eCon);
			return null;
		}
	}