save ndarrays as blobs to databases