Flush db after every law in update script.