check error with sqlite3 gem