Added a clearDatabase method to the core data manager