Cleanup, stop Base64 encoding stuff and store as BLOB