Early version of innodb conversion process.

See mailing list [http://permalink.gmane.org/gmane.comp.bug-tracking.mantis.devel/5521] for request about helping review performance
Should this be db_query()?