Effective model for the QCD phase transitions at finite baryon density