Sql For Each Loop Insert