added database clearing functionality for deployment preparation