@Override
	public int getBookingCountForFlight(int flightId) throws ConnectException {
		if (this.dbConnection == null) {
			connectToDB(this.dbFileName);
		}
		String sql = "SELECT COUNT(ID) FROM bookings WHERE Flight = " + flightId;
		ResultSet result = executeQuery(sql);
		try {
			if (result != null) {
				return result.getInt(1);
			}
		} catch (SQLException e) {
			e.printStackTrace();
		} finally {
			try {
				if(result != null) {
					result.close();
				}
			} catch (SQLException e) {
				e.printStackTrace();
			}
		}
		return 0;
	}