public static long insert(User newUser) throws SQLException {
		PreparedStatement s = null;
		long rowCount = 0;
		try {
			// Connect to database and try to insert newUser into the database
			try { Class.forName("org.postgresql.Driver");} catch (ClassNotFoundException e) {}
			currentCon = DriverManager.getConnection(dbName);
			String query = "INSERT INTO users (name, age, state, role) VALUES (?, ?, ?, ?)";
			s = currentCon.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);
			s.setString(1, newUser.getName());
			s.setInt(2, newUser.getAge());
			s.setString(3, newUser.getState());
			s.setString(4, newUser.getRole());
			// Execute the query to update the database
			rowCount = s.executeUpdate();
		} finally {
			// Close 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 the user that was put into the database
		return rowCount;
	}