moved createBlob from session to sessionfactory