Check in partial implementation of multithreaded case database access
Complete new draft of multithreaded case database access