Db source switch for testing
Corrected number of samples