Fixed the sqlite3 group ends to end.