update & correct tables