Added Database handler.

This is for opt persistance.
EventHandler is now persistant.

Going to update requirements.txt next.
Fixed up unit tests.

Forgot to fix up the unit tests in regards to event persistance.  So
the unit tests should now work without a problem.
Fixed the VTN ID issue.
Merge remote-tracking branch 'ben/master'