Database connection

you dont point the db anywhere.
Within samba you set connection string to point to DB using the connection string in format like above.

But you will have needed to have configured ‘server’ (machine hosting the database you intend to use) corectly inc some sql options for remote access and firewall etc.
See below tutorial;