public static Level[] getLevels(JFrame frame, Game game) {

		ArrayList<Level> levels = new ArrayList<Level>();

		try {

			Statement s1 = conn.createStatement();
			ResultSet rs = s1
					.executeQuery("Exec getLevelLayout");

			if (rs != null) {
				while (rs.next()) {
					int levelID = rs.getInt("layoutID");
					Level newLevel = new Level(levelID, frame, game);

					for (int i = 0; i < letters.length; i++) {
						for (int j = 0; j < 10; j++) {
							String key = letters[i] + j;

							int tileInt = rs.getInt(key);

							AbstractTile tile = new AbstractTile(i
									* Main.TILE_SIZE, j * Main.TILE_SIZE);

							if (tileInt == 1) {
								//
							} else if (tileInt == 2) {
								tile.setMoveThrough(false);
								tile.setColor(Color.black);
							} else {
								//
							}

							newLevel.setTile(i, j, tile);

						}
					}
					levels.add(newLevel);
				}
			}

		} catch (Exception e) {
			e.printStackTrace();
		}

		return levels.toArray(new Level[levels.size()]);
	}