If you've enabled the database's CIDR allow list, you must also add the VPC peered IP addresses to the CIDR allow list to connect to the database via the private endpoint.