Added a method to dump audit databases into sql statements