Function to update views while keeping the DB alive