#524710 by catch and gordon: Add role_permission() table earlier in order to allow upgrade path to work.