Extracted all db related files into <db> library.
Added sqlite as external dependency.
Documented bugs in the SQLite adapter.