'Store the PDF layout information into the database/disk.
@param formUUID: uuid of the generated form
@param layoutXML: layout xml of the generated form
@param numPages: number of pages in the generated form'

def __update_dbmeta(self, formUUID, layoutXML, numPages):

    layout_file_stream = StringIO(layoutXML)
    layout_file_name = ('%s_xml' % formUUID)
    s3ocrxml_file_stream = StringIO(self.s3ocrxml)
    s3ocrxml_file_name = ('%s_ocrxml' % formUUID)
    db = current.db
    table = db.ocr_meta
    rows = db((table.form_uuid == formUUID)).select()
    row = rows[0]
    row.update_record(layout_file=table.layout_file.store(layout_file_stream, layout_file_name), s3ocrxml_file=table.s3ocrxml_file.store(s3ocrxml_file_stream, s3ocrxml_file_name), pages=numPages)
