Added refresh functions to database classes