AppConfig and query