Converted SQL to ByteString.
Implemented storeRec.