Separated install and remove states of mariadb and mysql.