add atomic db access in manager