fixed some bugs in gpudb and hints