Learning how database engines work