The quotas are coming from Nova (nova quota-show for the current tenant), you'll have to make sure the quota table is kept synchronised if you're updating the database manually (which isn't usually recommended). The answer to this question might help you on how to do this: https://ask.openstack.org/en/question/494/how-to-reset-incorrect-quota-count/ .