SQL notes and first model.