PHP Class to interface RETS with Database