DB ASYNC CODE ADDED