Linked graph to database

Changed format of date string stored in database
Topic Activity now accesses database for analysis session history and
statistics.
Creates random database entries for testing.
Restricts graph to a maximum of last 15 entries (for display clarity)