Added async save to database to improve performance.