Convert instance_update to use new Query stuff.

Adds instance_metadata and instance_system_metadata Mixins.
Also adds basic tests for mysqldb/sql.py