Add clearing sql script.
Refactoring.