Fixes an issue with the `create_sql_view_layer`:
- It tries to perform an intermediate `reload` using the `public_endpoint`, which fails often in a containerized environment.
- Default behavior is to now call this with the `endpoint`.
- An additional argument is added to `create_sql_view_layer` to allow overriding this behavior.