finish sql accessor for sqlite3