Update db according to milestone