Save data to database and sleep in each api call block