private static void createDB() {
    Logger.log("Creating new database.");
    Connection connection = null;
    Statement statement = null;

    try {
      Class.forName("org.sqlite.JDBC");
      connection = DriverManager.getConnection("jdbc:sqlite:"+Settings.DB_PATH);
      statement = connection.createStatement();
      statement.setQueryTimeout(30);

      statement.executeUpdate("drop table if exists release");
      statement.executeUpdate("drop table if exists tracker");
      statement.executeUpdate("drop table if exists team");
      statement.executeUpdate("create table tracker (id integer primary key autoincrement not null, name text)");
      statement.executeUpdate("create table team (id integer primary key autoincrement not null, name text)");
      statement.executeUpdate("create table release (id integer primary key autoincrement not null, name text," +
          " quality text, seasonEpisode text, source text, codec text, subtitled integer," +
          " releaseDate date, addDate date, idTracker references tracker(id), idTeam references team(id))");
    }
    catch(Exception e)
    {
      Logger.logError(e.getMessage());
    }finally {
      try
      {
        if(connection != null)
          connection.close();
      }
      catch(SQLException e)
      {
        Logger.logError(e.getMessage());
      }
    }
  }