Fixed template data when adding pin types by a button click
Save parent category to DB