add sql script and update entity