Reordering in method to set pull request status so the
local db file is the last to be updated.