Added support for SQLite
Fixed boost thread dependency on boost system
Refactoring