cs222: principles of data management