Altering db on updates