updated orm and Posts class to remove use of orm cache.