Set interval info from db for page refresh