Prepare the host, port, database, username, password, SSL requirement, and the table or view that returns contacts or lifecycle records.
Use a table or view with stable identifiers plus name, email, phone, timestamps, status fields, and any campaign segmentation attributes.
Use a read-only database user, restrict network access, enable SSL where possible, and avoid exposing sensitive columns that are not needed for messaging.