update for sql-file