added sqlite3 functionality