#495956 by cafuego, sun, andypost, Josh Waihi, axyo: do not assume that the database will insert role numbers or filter format indexes in a specific way