php orm crappy sample codes