Sqlite to store detections