public boolean comment(String comment, int imgId, String username) {
		PreparedStatement stmt = null;
		Connection conn = null;
		ResultSet rs = null;
		int user_id = 0;
		Calendar currenttime = Calendar.getInstance();
		Date date = new Date((currenttime.getTime()).getTime());
		
		try {
			conn = DbConnection.getConnection();
			stmt = conn.prepareStatement(GET_USERID_STMT);
			stmt.setString(1, username);
			rs = stmt.executeQuery();
			if (rs.next()) {
				user_id = rs.getInt(1);
			} else {
				return false;
			}
			
			stmt = conn.prepareStatement(ADD_COMMENT_STMT);
			stmt.setString(1, comment);
			stmt.setInt(2, user_id);
			stmt.setDate(3, date);
			stmt.setInt(4, imgId);
			
			stmt.executeUpdate();
			
			return true;
		} 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;
		    }
		}
	}