Update db and script effect