public boolean update(String query) {
		boolean result = true;
		connectDB();
		PreparedStatement stmt = null;
		try {
			stmt = dbConnection.prepareStatement(query);
			stmt.executeUpdate();
		} catch (SQLException e) {
			result = false;
		}finally{
			if(stmt != null)try{stmt.close();}catch(Exception e){};
			if(dbConnection != null)try{dbConnection.close();}catch (Exception e){};
		}
		return result;
	}