Add $version management

Ciao Alessandro,

  Please take a look at this patch, it adds version management to the MySQL module.

  Regards, Javier