updating SQL file