Database disk quotas

Hello
Does the control panel count database space towards the overall quota? I don’t think so. It’s not working correctly.
Can anyone help?