On the Groebner bases of some symmetric systems and their application to Coding Theory