dbcheck: added fix for incorrect RMD_FLAGS