public int getTotalLogins(String playerName) {
		int totalLogins = 0;
		
		if (helper.isNotEmpty(playerName)) {
			try {
				ResultSet rs = _sqLite.query("SELECT count(time_login) "
										   + "AS total_logins "
										   + "FROM player, login "
										   + "WHERE player.playername = '" + playerName + "' "
										   + "AND player.id = login.id_player;");
				if (rs.next()) {
					try {
						totalLogins = rs.getInt("total_logins");
					} catch (SQLException e) {
						e.printStackTrace();
					}
				}
			} catch (SQLException e) {
				e.printStackTrace();
			}
		} else if (helper.isEmpty(playerName)) {
			try {
				ResultSet rs = _sqLite.query("SELECT count(time_login) "
										   + "AS total_logins "
										   + "FROM login;");
				if (rs.next()) {
					try {
						totalLogins = rs.getInt("total_logins");
					} catch (SQLException e) {
						e.printStackTrace();
					}
				}
			} catch (SQLException e) {
				e.printStackTrace();
			}
		}
		return totalLogins;
	}