Javascript DB connection?

Hi everyone, i have a part of script code in Settings>SEO & Metatags>Script in the body:

Part of the code is this:
< /script>
< script type=“text/javascript”>
window.init({
appId: 213317xxxxxxxxxxxxxxxxxx04dc,
userId: userId,
userName: username,
imageLink : ‘’,
email : ‘’,
contactNumber: ‘’,
desktopNotification: true,
source: ‘1’,

I want to integrate my db with this script. I have all this fields in my db, but i wish to connect it with the script.
My db is named “Users” and example the “userid” i want to use my unique-id how i should write the syntax in the script?
Something like this:
userId: Current User>Unique-id,
userName: Current User>name

Or there is a unique number of every cell that i can get the number and post it in the script?

How i can do this?

Thanks!.

Hello ! I have the same problem, did you find any answer ?