add functional controller
change repair columm 'type' from string to text