changes to metadata to be a str when updating db

also, it is loaded back into a dict when read from db
Merge pull request #12 from rackspace-titan/extension-OS-SI-api-samples

changes to metadata to be a str when updating db