The below note will explain on how to build history database:
We have two types of History Databases
query history – A query database collects and stores the data that is most commonly needed to monitor and report on the query activity of a system.
audit history – An audit database collects the same data as a query database, but stores the data in row-secured tables and digitally signs the data to prevent it from being changed.
Note: If an audit database is used and the history data staging area exceeds its STORAGELIMIT value, the system stops, and the administrator must free up space and restart the system before users can resume activity.