Check for storage type before clear database