fixed quotas table and API update for quotas