You can access your MariaDB database through a PHP script. This let's you read and write data to your database directly from your website.
You can use the following string:
$con=mysqli_connect("example.com.mysql", "username", "password", "database");
Replace the example text with the login details for your own database. You can find them in your One.com Control Panel under PHP & MariaDB.