Add editing grid (incomplete)

Update query.