Loading spinner when are been executed long queries