Added cache clearing when resetting db