Fixed segment service initialization to properly load queries from JSON definitions