Updates mariadb in Dockerfile's and adds a build script.