This function should configure mariadb (with pw) and after a successfull configuration it should move forward to create a database, but it seems to skip the command.
Code