changes for MariaDB deployment (taken from Jonas)