added sqlite3 handling