Added database compact script.