Fixing a bug in GC DB