Moved sql storage get_usage into _get_usage and _get_raw.