Adding mysql for attribute changes