Moved remove mariadb-libs into the install phase
Renamed mariadb-libs element to change the order it runs