On Groebner bases of some symmetric systems and their applications to coding theory