* factorized SQL database backend
* added support for sqlite3 and postgresql