adding a clear function to clear out the objectstore