Context with MySQL / DB Static

Hi,

I am trying to convert some contexts into MySQL Static. I not found a way to convert templates and the most important thing is the function to add contexts, like:

[globals]
TRUNK1=DAHDI/G1

[globals]+
TRUNK2=DAHDI/G2

Anyone know the syntax to include it into database? The problem is if I change the cat_metric for the same category the last one, overwrite the others. So if I can use, for the first context, a cat_metric = 1 and for the second context a cat_metric = 2 is what I am looking for.

Ok, I can change it using the database, but it will increase the logic of my software.

Regards,
Arnaldo.