syntax error in SQLite statement and listview naming fix