Test raise error for sqlite3