[COMMON] Update _mariadb.tpl to use the proper db