Feat/sql

Support for SQLite database. Passed all unit tests. Code seems stable. Merging into master.