Watford Head Coach Javi Gracia says their win against Cardiff has restored confidence after six games without a win.