Electron Database connection remotely

Im very new in electron and nodejs . i have develop my front app of my system and i wanna add a database but i want to connect to the server remotely please is there any help and suggestions that can help me.im really confused thanks