built audit model and cleaned up database