Database acesses are safer across threads