Fix dbcontext concurency issues. Fixes #9