add prompt for thread and database.