adding db support for sqlite3 and pg