sqlite update with values from another table