DB sharing: memory leak