Same as any other web applications, for installable cloud apps, the PowerServer Web APIs must be published to a PowerServer that locates on the same LAN as the database server. If the database is not on the same network as the Web APIs, every request has to go a long way from PowerServer to the database, it is very likely that there will be performance and security issues.