prevent multiple database updates