changed single db example so that a new data source is created for each thread