database update for grid question