update calendar implementation; add sqlite library.