fixing db threading issues
temp
temp
test
test
Fix issue with db threading