add tts and fix bug on LearningActivity.
fix bug on Database class.