Meson and dibaryon masses in a QCD based consistent quark model