Fixes db migration error for hours