public static List<String> allTags(int imgId) {
		PreparedStatement stmt = null;
		Connection conn = null;
		ResultSet rs = null;
		
		List<String> tags = new ArrayList<String>();
		
		try {
		  conn = DbConnection.getConnection();

			stmt = conn.prepareStatement(ALL_TAGS_STMT);
			stmt.setInt(1, imgId);
			rs = stmt.executeQuery();
			while (rs.next()) {
				tags.add(rs.getString(1));
			}
			
		  rs.close();
			rs = null;

			stmt.close();
			stmt = null;

			conn.close();
			conn = null;
			
			
		  } catch (SQLException e) {
		  e.printStackTrace();
		  throw new RuntimeException(e);
		} finally {
		  if (rs != null) {
			try { rs.close(); }
			catch (SQLException e) { ; }
			rs = null;
		  }
		  
		  if (stmt != null) {
			try { stmt.close(); }
			catch (SQLException e) { ; }
			stmt = null;
		  }
		  
		  if (conn != null) {
			try { conn.close(); }
			catch (SQLException e) { ; }
			conn = null;
		  }
		}
		return tags;
	}