Added async DB functionality