 
   def upgrade_data do
     start_services()
+    start_vt_pool()
     IO.puts("Upgrading data...")
     Asciinema.Asciicasts.upgrade()
     stop_services()

    :ssl,
    :postgrex,
    :ecto,
    :timex # for seeds
  ]

  @repos Application.get_env(:asciinema, :ecto_repos, [])


  def seed do
    start_services()
    start_vt_pool()
    run_seeds()
    stop_services()
  end

  def migrate_and_seed do
    start_services()
    start_vt_pool()
    run_migrations()
    run_seeds()
    stop_services()
