Add new data query type for loading all data
Move sleep function call to separate function