Update legacy database structures.