Flask framework to handle searches in SGA