Spark and sql

Hello, i have a website with sql database. i want to ask if i created a spark server where people can chat, can the accounts to login be taken from that database automaticly ?

my database is sql, and opens in phpmyadmin. passwords are md5

plus i need to ask about the software, i red its open source, so ican i purchase a version for me and change the logo, so it would look like a private messenger for my clients ?

and for example they don’t have to type the server ip… it would be automaticly taken. . . etc…

thanks for your help.