note from database lectures