Created refresh function

Still have to adjust SQL to show latest... this is easier in SQL server
how is that?