[BUG] fixed the database connection failure with the asynchronous mode