private double getTips(String pin){
		java.sql.Statement state = DBConnection.OpenConnection();
		double tipsTotal = 0.00;
		DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
		Date date = new Date();
		String query = String.format("SELECT Tip FROM avalenti.Payments WHERE E_PIN = %s AND Date = '%s';", pin, dateFormat.format(date).toString());
		if(state != null){
			try {
				ResultSet rs = state.executeQuery(query);
				while(rs.next() == true) {
					double tips = Double.parseDouble(rs.getString("Tip"));
					tipsTotal += tips;
				}
			} catch (SQLException e) {
				System.err.println("Error in SQL Execution");
			}
		}
		else
			System.err.println("Statement was null.  No connection?");
		
		return tipsTotal;
	}