public synchronized int getNextId(){
		//get the next ID
		int id = -1;
		//get list of bikes from the DB
		if (con != null) {
			try {
				//get a statement oject
				st = con.createStatement();
				
				//insert a new autoincrement id into the table
				String query = "INSERT INTO Sequence() VALUES ();";
				st.executeUpdate(query);
				
				//get that ID back
				query = "SELECT max(Id) AS Id FROM Sequence;";
				rs = st.executeQuery(query);
				while (rs.next()) {
					id = rs.getInt("Id");
				}
			} catch (SQLException ex) {
				Logger lgr = Logger.getAnonymousLogger();
				lgr.log(Level.WARNING, ex.getMessage(), ex);
			} finally {
				try {
					if (rs != null){rs.close();	}
					if (st != null) {	st.close();}
				} catch (SQLException ex) {
					Logger lgr = Logger.getAnonymousLogger();
					lgr.log(Level.SEVERE, ex.getMessage(), ex);
				}
			}
		}
		return id;
	}