Added a functionality to get all the samples at once.
For legacy databases, it uses the all_files method.
Closes #146 (closed)