database should also be updated