If i needed to access the database every second, to get the latest result (live), how to enhancing the code and make it better instead of just loop and access it every second. Any idea?