Added async database call