added check whether there are actually entries in the global_background table