tiny php active record for pedagogical purposes