long-lived token, database, and weather api polling working