Make badge last_awarded and first_awarded queries case-insensitive.