update the db after pc and dam added