Drogheda United remain five points clear of 9th place after a comeback win at home to bottom side UCD.