Added more database code and unit testing for article update logic.