added update db call