Created class to handle table refresh in the background