Added second table to DB with data of time periods. Rewrote
TimingActivity to work with SQLite.