Fixed quotas import (was not filtering for rank correctly) and fixed quotas export (was not fetching the data properly)