fix concurrency issues with the server, passes all tests. disabled pdb caching again

Signed-off-by: Ian Norton <inorton@gmail.com>