Reset db when needed, backup popularities