Top seed David Ferrer was forced to come from a set down against qualifier Dustin Brown before moving into the second round of the Qatar Open.