Notes for Stanford's online database course