Added draft delegating thread handler
Refactoring, added sqlite3 database for cache