Added hydrator class for flattening results from mysql