added a function to remove all data from a data source from the database