Added local Diary DB class with methods to be used