The Bees suffered an early setback through Michael Rankine's opener, although David Stephens may have got the final touch to turn the ball into his own goal, but strikes from Andy Yiadom and Jake Hyde sealed the win that moved them two points clear of the drop zone and into 20th place in the table.
"I'm very pleased, sometimes you have to win ugly," said Davids.
"We started off not very sharp and after that we controlled the game. Second half we didn't control the game but we showed character and sometimes when you don't have the ability to play the ball, like we did the last three games, then you have to switch to another mode and luckily we did.
"They started off very well and we got punished. The pitch was slippery and wobbly but they had the same problems so there is no excuse from either team.
"The goal before half-time was very important. If not then they would have had more confidence and they can rest and you have to go bomb on forward looking for the goal. With the goal we had an equal opportunity and luckily we got the win. I'm very happy the spirit is like this at the moment."