Saving progress on DB query. Not working ATM.