public static User find(String name) throws SQLException {
		PreparedStatement s = null;
		User user = null;
		
		try {
			try { Class.forName("org.postgresql.Driver");} catch (ClassNotFoundException e) {}
			
			// Connect to the database and execute a query to find a user with the same name as name
			currentCon = DriverManager.getConnection(dbName);
			String query = "SELECT * FROM Users WHERE name = ?";
			s = currentCon.prepareStatement(query);
			s.setString(1, name);
			rs = s.executeQuery();
			
			// Checks if anything is returned
			if (rs.next()) {
				// Then creates a new user90
				System.out.println("not working");
				user = new User(rs.getString("name"),
								rs.getInt("age"),
								rs.getString("state"),
								rs.getString("role"),
								rs.getLong("id"));
			}
		} finally {
			// Close all connections
			if (rs != null) try {rs.close();} catch (SQLException ignore) {}
			if (s != null) try {s.close();} catch (SQLException ignore) {}
			if (currentCon != null) try {currentCon.close();} catch (SQLException ignore) {}
		}
		// returns a null user or a user with all the objects filled, depending on if a thing was found
		return user;
	}