old_contents: from google.appengine.ext import db
  from google.appengine.api import users
  
  class YoutifyUser(db.Model):
      created = db.DateTimeProperty(auto_now_add=True)
      google_user = db.UserProperty(auto_current_user=True)
      device = db.StringProperty()
      flattr_access_token = db.StringProperty()
      flattr_user_name = db.StringProperty()
      flattr_scope = db.StringProperty()
      youtube_username = db.StringProperty()
  
  class Playlist(db.Model):
      owner = db.ReferenceProperty(reference_class=YoutifyUser)
      json = db.TextProperty()
  
  class Phrase(db.Model):
      date = db.DateTimeProperty(auto_now_add=True)
      text = db.StringProperty(required=True)
  
  class SnapshotMetadata(db.Model):
      date = db.DateTimeProperty(auto_now_add=True)
      active = db.BooleanProperty()
  
  class SnapshotContent(db.Model):
      json = db.TextProperty(required=True)
      metadata = db.ReferenceProperty(reference_class=SnapshotMetadata)
  
  class Language(db.Model):
      date = db.DateTimeProperty(auto_now_add=True)
      code = db.StringProperty()
      label = db.StringProperty()
      enabled_on_site = db.BooleanProperty()
      enabled_in_tool = db.BooleanProperty()
      translations = db.ListProperty(db.Key)
      leaders = db.ListProperty(db.Key)
  
  class Translation(db.Model):
      phrase = db.ReferenceProperty(Phrase)
      text = db.StringProperty()
  
  class SubmittedVideo(db.Model):
      youtify_user = db.ReferenceProperty(reference_class=YoutifyUser)
      flattr_user_name = db.StringProperty()
      title = db.StringProperty()
      thing_id = db.StringProperty()
      video_id = db.StringProperty()
  
  # HELPERS
  ##############################################################################
  
  def get_current_youtify_user():
      return get_youtify_user_for(users.get_current_user())
  
  def get_youtify_user_for(user=None):
      return YoutifyUser.all().filter('google_user = ',user).get()
  
  def create_youtify_user():
      m = YoutifyUser()
      m.put()
      return m
  
new_contents: from google.appengine.ext import db
  from google.appengine.api import users
  
  class YoutifyUser(db.Model):
      created = db.DateTimeProperty(auto_now_add=True)
      google_user = db.UserProperty(auto_current_user=True)
      device = db.StringProperty()
      flattr_access_token = db.StringProperty()
      flattr_user_name = db.StringProperty()
      flattr_scope = db.StringProperty()
      youtube_username = db.StringProperty()
  
  class Playlist(db.Model):
      owner = db.ReferenceProperty(reference_class=YoutifyUser)
      json = db.TextProperty()
  
  class Phrase(db.Model):
      date = db.DateTimeProperty(auto_now_add=True)
      text = db.StringProperty(required=True)
  
  class SnapshotMetadata(db.Model):
      date = db.DateTimeProperty(auto_now_add=True)
      active = db.BooleanProperty()
  
  class SnapshotContent(db.Model):
      json = db.TextProperty(required=True)
      metadata = db.ReferenceProperty(reference_class=SnapshotMetadata)
  
  class Language(db.Model):
      date = db.DateTimeProperty(auto_now_add=True)
      code = db.StringProperty()
      label = db.StringProperty()
      enabled_on_site = db.BooleanProperty()
      enabled_in_tool = db.BooleanProperty()
      translations = db.ListProperty(db.Key)
      leaders = db.ListProperty(db.Key)
  
  class Translation(db.Model):
      phrase = db.ReferenceProperty(Phrase)
      text = db.StringProperty()
  
  class SubmittedVideo(db.Model):
      date = db.DateTimeProperty(auto_now_add=True)
      youtify_user = db.ReferenceProperty(reference_class=YoutifyUser)
      flattr_user_name = db.StringProperty()
      title = db.StringProperty()
      thing_id = db.StringProperty()
      video_id = db.StringProperty()
  
  # HELPERS
  ##############################################################################
  
  def get_current_youtify_user():
      return get_youtify_user_for(users.get_current_user())
  
  def get_youtify_user_for(user=None):
      return YoutifyUser.all().filter('google_user = ',user).get()
  
  def create_youtify_user():
      m = YoutifyUser()
      m.put()
      return m
  
subject: Add date to submitted videos