indexing: fmid as string in sql queries

This column must be changed to integer, but in the meantime
this avoid slow queries due to the fact mysql was casting
rows and not using indexes because of this
Merge pull request #174 from openchange/jgarcia/indexing-mysql-performance

Mapistore indexing: mysql performance