{
  "getBin": "SELECT * FROM sandbox WHERE url=? AND revision=?",
  "getLatestBin": "SELECT * FROM sandbox WHERE url=? ORDER BY revision DESC LIMIT 1",
  "setBin": "INSERT INTO sandbox (javascript, css, html, created, last_viewed, url, revision, streaming_key) VALUES (?, ?, ?, NOW(), NOW(), ?, ?, ?)",
  "setBinPanel": "UPDATE sandbox SET :panel=?, created=NOW() WHERE url=? AND revision=? AND streaming_key=? and streaming_key!=''",
  "binExists": "SELECT id FROM sandbox WHERE url=? LIMIT 1"
}

{
  "getBin": "SELECT * FROM `sandbox` WHERE `url`=? AND `revision`=? LIMIT 1",
  "getLatestBin": "SELECT * FROM `sandbox` WHERE `url`=? ORDER BY `revision` DESC LIMIT 1",
  "setBin": "INSERT INTO `sandbox` (`javascript`, `css`, `html`, `created`, `last_viewed`, `url`, `revision`, `streaming_key`) VALUES (?, ?, ?, NOW(), NOW(), ?, ?, ?)",
  "setBinPanel": "UPDATE `sandbox` SET `:panel`=?, `created`=NOW() WHERE `url`=? AND `revision`=? AND `streaming_key`=? and `streaming_key`!=''",
  "binExists": "SELECT id FROM `sandbox` WHERE `url`=? LIMIT 1",
  "getUser": "SELECT * FROM `ownership` WHERE `name`=? LIMIT 1",
  "setUser": "INSERT INTO `ownership` (`name`, `key`, `email`, `last_login`, `created`, `updated`) VALUES (?, ?, ?, NOW(), NOW(), NOW())"
}

Add sql templates for ownership table
Add sql templates for ownership table
