updating with database - local