trying to figure out sqlite3 error