Change db and output method