added key parameter to the method responsable for writing the byte buffer to the databackup object