Merge pull request #356 from rcordovano/develop

Implement case database connection per thread