update with database