Select samples from the database: