added returning of previousLink

so that we can get only updates later on
moved saving of data into one file

also removed statuses as an extra query