Update ranks invalid db handle fix & credits update