save db & add index to audit tables