Added database auditing functionality.