Using sqlite to store samples, published by a service. Avoids hanging the application.