database adapter for tDiary