The BAM database is used to store information about your business processes.
The following diagram shows the relationship between each of the BAM tables:

BAM database is populated with the information generated by auditing events. Auditing events generation can be enabled for the whole process, for a subset of activities or for a particular activity. For more information on how to configure auditing events generation please see Audit Events.