more atomic db connexions and safer async calls