It’s a C extension to Lua. It could most likely be converted to a Defold extension.
BUT do you really want the client to directly update the database? What about security? I’m assuming the database is password protected. You’d have to include the user and password in the client and that’s like handing the keys to the vault to a bunch of bank robbers.
What you want is a webserver that takes care of user authentication, data validation and database updates. For instance some PHP scripts.
What kind of data would you like to store? You could perhaps use something like PlayFab or an AWS service instead of rolling your own backend solution.